<?php
/* @var $this LoginLogController */
/* @var $model LoginLog */

$this->breadcrumbs=array(
	'[xx]管理'=>array('admin'),
	'[xx]列表',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - [xx]列表';
$this->contentTitle='[xx]列表';
?>
<!-- 查询表单 -->
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
<!-- 查询表单 -->

<!-- 数据表格 -->
<table cellspacing="1" class="mylist2">
	<thead>
		<tr class="mylist_title">
			
			
                        <td><?php echo CHtml::encode($model->getAttributeLabel('user_id')); ?></td>
                        <td>工号</td>
                        <td>业务归属</td>
                        <td>电话</td>
			<td><?php echo CHtml::encode($model->getAttributeLabel('out_ip')); ?></td>
			<td><?php echo CHtml::encode($model->getAttributeLabel('create_tiem')); ?></td>
			
		</tr>
	</thead>
	<tbody>
		<?php foreach ($data->getData() as $key => $value) {?>
		<tr class="datalist">
                        <td><?php echo CHtml::encode($value->user->username);?></td>
                        <td><?php echo CHtml::encode($value->user->number);?></td>
                         <td><?php echo CHtml::encode($value->user->service);?></td>
                         <td><?php echo CHtml::encode($value->user->phone);?></td>
			
			<td><?php echo CHtml::encode($value->out_ip);?></td>
			<td><?php echo CHtml::encode($value->create_tiem);?></td>
		    
		</tr>
		<?php }?>
	</tbody>
</table>
<!-- 数据表格 -->

<!-- 数据分页 -->
<div class="mylist_foot">
    <div class="fl p10 btn"><a href="javascript:clickM();">返回</a></div>
   
</div>
	<div class="pagecss fr">
	<?php $this->widget("CLinkPager", array(
        "pages" => $data->pagination,
        "header"=>"跳转到：",
        "prevPageLabel"=>"&lt; 上一页",
        "nextPageLabel"=>"&gt; 下一页",
        "firstPageLabel"=>"&lt;&lt; 首页",
        "lastPageLabel"=>"&gt;&gt; 尾页",
        "maxButtonCount"=>5,
        "footer"=>"当前页数：".($data->pagination->currentPage+1)." 总页数：".$data->pagination->pageCount." 总记录数：".$data->pagination->itemCount
    )) ?>
	</div>
</div>

<?php if(Yii::app()->user->hasFlash('success'))
        echo "<script> art.dialog({
        id: 'dialogTest',
        title: '提示信息',
        time: 5,
        icon: 'succeed',
        content: '<b>操作成功！</b><br /><br />该消息5秒后自动消失！',
        button: [
            {
                name: '确定',
                focus: true
            }]
    });</script>" 

?><!-- 数据分页 -->
<!-- 脚本 -->
<script type="text/javascript">
    function deleteSelect(id){
        ajaxSubmitdeleteSelect(id,'<?php echo Yii::app()->createUrl('loginLog/delete',array('id'=>0)) ?>
');
    }

    function clickM(){
        window.location.href='<?php echo Yii::app()->createUrl('Member/admin'); ?>';
    }

</script>
<!-- 脚本 -->
